package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @TableName customer_coupon
 */
@TableName(value ="customer_coupon")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CustomerCoupon implements Serializable {
    /**
     * 代金券信息ID
     */
    @TableId(type = IdType.AUTO)
    private Integer customerCouponId;

    /**
     * 优惠卷信息表ID
     */
    private Long couponInfoId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 订单编号
     */
    private String orderId;

    /**
     * 领取时间
     */
    private Date receiveTime;

    /**
     * 使用时间
     */
    private Date usedTime;

    /**
     * 优惠券状态
     */
    private Long status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
